<?php

class Application_Form_MultimediaNote extends Zend_Form
{
    public function init()
    {
        $this->setName('MultimediaNote');

        $note_id = new Zend_Form_Element_Hidden('note_id');
        $note_id->addFilter('Int');
		$file_id = new Zend_Form_Element_Text('file_id');
        $file_id->setLabel('file id')
        					  ->addFilter('Int');
		$top = new Zend_Form_Element_Text('top');
        $top->setLabel('top')
        					  ->addFilter('Int');
		$left = new Zend_Form_Element_Text('left');
        $left->setLabel('left')
        					  ->addFilter('Int');
		$width = new Zend_Form_Element_Text('width');
        $width->setLabel('width')
        					  ->addFilter('Int');
		$height = new Zend_Form_Element_Text('height');
        $height->setLabel('height')
        					  ->addFilter('Int');	
							  
        $content = new Zend_Form_Element_Text('content');
        $content->setLabel('content')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty');
		$is_active = new Zend_Form_Element_Text('is_active');
        $is_active->setLabel('is active')
        					  ->addFilter('Int');
		$user_id = new Zend_Form_Element_Text('user_id');
        $user_id->setLabel('user id')
        					  ->addFilter('Int');
        $user_name = new Zend_Form_Element_Text('user_name');
        $user_name->setLabel('user_name')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty');                          
        $created_date = new Zend_Form_Element_Text('created_date');
        $created_date->setLabel('created date')
               ->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty')
			   ->addValidator('Date');   
        					  

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');

            $this->addElements(array($note_id,$file_id, $top, $left, $width,$height, $content, $is_active, $user_id, $user_name, $created_date,$submit));
    }
}